package cn.xqj.system.service.impl;

import cn.xqj.basic.service.impl.BaseServiceImpl;
import cn.xqj.system.domain.DictionaryDetail;
import cn.xqj.system.domain.DictionaryType;
import cn.xqj.system.mapper.DictionaryTypeMapper;
import cn.xqj.system.service.IDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
public class DictionaryTypeServiceImpl extends BaseServiceImpl<DictionaryType> implements IDictionaryTypeService {

    @Autowired
    private DictionaryTypeMapper dictionaryTypeMapper;



    @Override
    @Transactional
    public void add(DictionaryType dictionaryType) {
        dictionaryTypeMapper.add(dictionaryType);
    }



    @Override
    @Transactional
    public void update(DictionaryType dictionaryType) {
        dictionaryTypeMapper.update(dictionaryType);

    }


    @Override
    public List<DictionaryDetail> queryDetail(Long id) {
        return dictionaryTypeMapper.queryDetail(id);
    }
}
